package com.ruoyi.lottery.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;

/**
 * 抽奖任务对象 lot_task
 *
 * @author shier
 * @date 2023-01-27
 */
@Getter
@Setter

@TableName("lot_task")
public class LotTask extends BaseEntity {

    private static final long serialVersionUID = 1L;

    // 参与限制
    /** 新用户 */
    public static final int PARTICIPATION_LIMIT_NEW_USER    =   0;
    /** 老用户 */
    public static final int PARTICIPATION_LIMIT_OLD_USER    =   1;
    /** 全部用户 */
    public static final int PARTICIPATION_LIMIT_ALL_USER    =   2;

    // 次数限制
    /** 限制一次 */
    public static final int NUMBER_LIMIT_ONLY_ONCE    =   0;
    /** 每日刷新 */
    public static final int NUMBER_LIMIT_EVERY_DAY    =   1;


    /** 主键ID */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 任务名称 */
    @Excel(name = "任务名称")
    @TableField("name")
    private String name;

    /** 可完成功能 */
    @Excel(name = "可完成功能")
    @TableField("complete_func")
    private Integer completeFunc;

    /** 参与限制 */
    @Excel(name = "参与限制")
    @TableField("participation_limit")
    private Integer participationLimit;

    /** 次数限制 */
    @Excel(name = "次数限制")
    @TableField("number_limit")
    private Integer numberLimit;
}
